<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

    require_once APP_CTRL_ROOT . 'adm/admin_controller.php';

	class MyAdminRootController extends RootAdminController {

		function MyAdminRootController() {
        	parent::RootAdminController();

            $this->addChild('form_index',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_index.page.php|FormIndexPage'));
			$this->addChild('form_edit',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_edit.page.php|FormEditPage'));
			$this->addChild('form_delete',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_delete.page.php|FormDeletePage'));
			$this->addChild('form_create',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_create.page.php|FormCreatePage'));
			$this->addChild('form_activate',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_activate.page.php|FormActivatePage'));
    		$this->addChild('form_deactivate',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/form_deactivate.page.php|FormDeactivatePage'));

    		$this->addChild('field_index',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_index.page.php|FieldIndexPage'));
			$this->addChild('field_edit',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_edit.page.php|FieldEditPage'));
			$this->addChild('field_delete',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_delete.page.php|FieldDeletePage'));
			$this->addChild('field_create',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_create.page.php|FieldCreatePage'));
    		$this->addChild('field_up',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_up.page.php|FieldUpPage'));  //order up
    		$this->addChild('field_down',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/form/field_down.page.php|FieldDownPage'));  //order down


			$this->setDefaultChild('form_index');

		}

	}

    $Front =& new MyAdminRootController();
	$Front->start();


?>